package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;
import java.util.Objects;
import java.util.Set;
@TableName("t_user")
public class UserBean {
    @TableId(value = "pk_userId" ,type = IdType.AUTO)
    //用户编号
    private Integer id;
    //用户名
    @TableField("u_userName")
    private String userName;
    //用户密码
    @TableField("u_pwd")
    private String pwd="123";
    //用户真实姓名
    @TableField("u_realName")
    private String realName;
    //角色集合
    @TableField(exist = false)
    private Set<RoleBean> roleBeans;
    //权限
    @TableField(exist = false)
    private Set<GradeBean> gradeSet;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Set<RoleBean> getRoleBeans() {
        return roleBeans;
    }

    public void setRoleBeans(Set<RoleBean> roleBeans) {
        this.roleBeans = roleBeans;
    }

    public Set<GradeBean> getGradeSet() {
        return gradeSet;
    }

    public void setGradeSet(Set<GradeBean> gradeSet) {
        this.gradeSet = gradeSet;
    }
}
